package world;

import tools.Variables;

import com.element.character.enemy.EnemyList;
import com.element.character.player.Player;
import com.element.quest.QuestList;

public class World {
	private int versionID = Variables.GAME_VERSION;
	public Player player;
	public AreaList areaList = new AreaList("arealist0", this);

	public World(){
		
	}
		
	public void update(){
		player.update();
	}
	
	/* the main function for creating a new world */
	public static World createNewWorld(){
		World world = new World();
	
		/* 
		 * Do loading here!
		 */
		
		return world;
	}

	/* loads an existing world */
	public static World loadExistingWorld(){
		World world = new World();
		world.player = new Player(world);
		/* test */
		world.player.makeDefaultPlayer();
		
		/* 
		 * Do loading here!
		 */
		
		return world;
	}
	
	/* check if there is any existing world */
	public static boolean worldExists(){
		return true;
	}
}
